import { ref } from 'vue';

// 全局显示/隐藏状态
export const globalVisible = ref(true);

// 设置显示/隐藏状态
export const setGlobalVisible = (visible: boolean) => {
  globalVisible.value = visible;
};

// 切换显示/隐藏状态
export const toggleGlobalVisible = () => {
  globalVisible.value = !globalVisible.value;
};

// 获取当前状态
export const getGlobalVisible = () => globalVisible.value; 
